bc6fa3ed58a3cd0ae61d8d700e7c7c66431b02ba,src/test/java/testinfrastructure/junitrule/statement/TestMethodStatement.java,TestMethodStatement,shouldSkipTest,#,45
Before Change
return true;
}
// TODO edge
if (description.getAnnotation(FirefoxOnly.class) != null && !DriverInTest.isFirefoxDriver(browser.driver().get())) {
printSkipReason("Firefox-only", description);
return true;
}
if (description.getAnnotation(HtmlUnitOnly.class) != null && !DriverInTest.isHtmlUnitDriver(browser.driver().get())) {
printSkipReason("HtmlUnit-only", description);
return true;
}
if (description.getAnnotation(IEOnly.class) != null && !DriverInTest.isIEDriver(browser.driver().get())) {
printSkipReason("IE-only", description);
return true;
}
// TODO opera
After Change
printSkipReason("Chrome-only", description, currentDriver);
return true;
}
if (description.getAnnotation(EdgeOnly.class) != null && !DriverInTest.isEdgeDriver(currentDriver)) {
printSkipReason("Edge-only", description, currentDriver);
return true;
}
if (description.getAnnotation(FirefoxOnly.class) != null && !DriverInTest.isFirefoxDriver(currentDriver)) {
printSkipReason("Firefox-only", description, currentDriver);
return true;
}
if (description.getAnnotation(HtmlUnitOnly.class) != null && !DriverInTest.isHtmlUnitDriver(currentDriver)) {
printSkipReason("HtmlUnit-only", description, currentDriver);
return true;
}
if (description.getAnnotation(IEOnly.class) != null && !DriverInTest.isIEDriver(currentDriver)) {
printSkipReason("IE-only", description, currentDriver);
return true;
}
// TODO Safari